package cn.rui.config;

import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 项目一启动就执行
 */

@Component
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class InitConfig implements InitializingBean {

    //private  final   RedisTemplate redisTemplate;

    @Override
    public void afterPropertiesSet() {
        //初始化超级管理员

//        String encode = encoder.encode ("123456");
//        System.out.println (encode);

    }
}
